package com.bjpowernode.crm.commons.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

    public static String formateDateTimeUtils(Date date){

        SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:MM:ss");
        String result = dateFormat.format(date);

        return result;
    }

    public static String formateDateUtils(Date date){

        SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd");
        String result = dateFormat.format(date);

        return result;
    }
}
